home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Code
/
Chapter05
/
cni.S3D
next >
Wrap
Text File
|
2000-09-05
|
3KB
|
146 lines
Background {
color 0 0 0
}
DEF world-TIMER TimeSensor {
loop TRUE
cycleInterval 3.333
}
DEF Box01 Transform {
hidden true
translation 4.268 0 13.5
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.8392 0.8941 0.6
}
}
]
geometry MultiMesh {
coord DEF ANCHOR Coordinate {
point [
-22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
-22.42 43.02 -43.72 22.42 43.02 -43.72
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
}
}
]
}
DEF Box02 Transform {
hidden true
translation -118.3 0 11.62
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.8392 0.8941 0.6
}
}
]
geometry MultiMesh {
coord DEF DOWN Coordinate {
point [
-22.42 0 43.72 22.42 0 43.72 -22.42 -74.19 -43.72 22.42 -74.19 -43.72 -22.42 43.02 43.72
22.42 43.02 43.72 -22.42 43.02 -43.72 22.42 43.02 -43.72
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
}
}
]
}
DEF Box03 Transform {
hidden true
translation -240.9 0 9.739
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.8392 0.8941 0.6
}
}
]
geometry MultiMesh {
coord DEF UP Coordinate {
point [
-22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
-22.42 109.4 -43.72 22.42 109.4 -43.72
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
}
}
]
}
DEF Box04 Transform {
translation 4.268 0 13.5
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.8392 0.8941 0.6
}
}
]
geometry MultiMesh {
coord DEF MESH Coordinate {
point [
-22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
-22.42 43.02 -43.72 22.42 43.02 -43.72
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
}
}
]
}
DEF CNI CoordinateNodeInterpolator {
key [ 0.0 .25 .5 .75 1.0]
keyValue [
USE ANCHOR
USE UP
USE ANCHOR
USE ANCHOR
USE DOWN
]
}
ROUTE world-TIMER.fraction TO CNI.fraction
ROUTE CNI.value TO MESH.point